package com.mmall.order.convert;

import com.mmall.order.api.dto.OrderItemDTO;
import com.mmall.order.model.OrderItemDO;
import org.mapstruct.Mapper;
import org.mapstruct.Mappings;
import org.mapstruct.factory.Mappers;
import java.util.List;

/**
 * @author hejianglong
 * @date 2019/10/25
 */
@Mapper
public interface OrderItemConvert {

    OrderItemConvert INSTANCE = Mappers.getMapper(OrderItemConvert.class);

    @Mappings({})
    OrderItemDO convert(OrderItemDTO orderItemDTO);

    @Mappings({})
    List<OrderItemDO> convert(List<OrderItemDTO> orderItemDTOS);
}
